const menus = [
  // {
  //   title: '订单中心',
  //   icon: 'solution',
  //   children: [
  //     { title: '渠道订单', name: 'AggChannelOrderList' },
  //     { title: '平安订单', name: 'OrderList' }
  //   ]
  // },
  { title: '商品管理', icon: 'shop', name: 'ProductList' },
  { title: '订单管理', icon: 'solution', name: 'ShopOrderList' },
]
const admin = [
  { title: '订单管理', icon: 'solution', name: 'ShopOrderList' },
  { title: '商家管理', icon: 'setting', name: 'StoreList' },
  { title: '用户管理', icon: 'team', name: 'UserList' },
  { title: '充值记录', icon: 'pay-circle', name: 'RechargeList' },
]
export default {
  menus: ({ store }) => {
    if (store?.id == 0) return admin
    return menus
  }
}
